package com.hsgene.commit.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 评价与回复信息
 *
 * @Author: wangxuefeng@hsgene.com
 * @Description:
 * @Date: Created in 17:39 2018/7/11
 * @Modified By:
 */
public class CommitAndReplyInfo implements Serializable {
    /**
     * 评论id
     */
    private String commitId;
    /**
     * 商品id
     */
    private String productId;
    /**
     * 评价内容
     */
    private String content;
    /**
     * 总分
     */
    private double commitSumScore;
    /**
     * 打星
     */
    private double commitStartCount;

    private String commitRank;
    /**
     * 时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date commitTime;
    /**
     * 回复数
     */
    private int replyCount;
    /**
     * 有用数
     */
    private int usefulCount;
    /**
     * 点赞ID(判断当前用户是否点赞)
     */
    private String likeId;
    /**
     * 图片
     */
    private String images;
    /**
     * 用户
     */
    private Customer customer;
    /**
     * 回复内容
     */
    private List<CommitReplyInfo> replyInfo;

    public String getCommitId() {
        return commitId;
    }

    public void setCommitId(String commitId) {
        this.commitId = commitId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public double getCommitSumScore() {
        return commitSumScore;
    }

    public void setCommitSumScore(double commitSumScore) {
        this.commitSumScore = commitSumScore;
    }

    public double getCommitStartCount() {
        return commitStartCount;
    }

    public void setCommitStartCount(double commitStartCount) {
        this.commitStartCount = commitStartCount;
    }

    public Date getCommitTime() {
        return commitTime;
    }

    public void setCommitTime(Date commitTime) {
        this.commitTime = commitTime;
    }

    public List<CommitReplyInfo> getReplyInfo() {
        return replyInfo;
    }

    public void setReplyInfo(List<CommitReplyInfo> replyInfo) {
        this.replyInfo = replyInfo;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public int getReplyCount() {
        return replyCount;
    }

    public void setReplyCount(int replyCount) {
        this.replyCount = replyCount;
    }

    public int getUsefulCount() {
        return usefulCount;
    }

    public void setUsefulCount(int usefulCount) {
        this.usefulCount = usefulCount;
    }

    public String getLikeId() {
        return likeId;
    }

    public void setLikeId(String likeId) {
        this.likeId = likeId;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public String getCommitRank() {
        return commitRank;
    }

    public void setCommitRank(String commitRank) {
        this.commitRank = commitRank;
    }
}
